<template>
  <div class="com">
    subapp3222 home
    <button @click="goTo('/subapp31/home')">to subapp31</button>
    <h5>{{ data }}</h5>
  </div>
</template>
  
  
<script>
import axios from "axios";
export default {
  name: "test",
  data() {
    return {
      data: "",
    };
  },
  created() {
    this.getData();
  },
  methods: {
    goTo(path) {
      console.log(path);
      // this.$router.push(path)
      history.pushState({}, "", path);
    },
    getData() {
      axios.get("/api32/test").then((res) => {
        console.log(res);
        this.data = res.data.data;
      });
    },
  },
};
</script>
  
  <style scoped>
</style>